<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <title>今日头疼</title>
    <link href="/public/css/bootstrap.min.css" rel="stylesheet">
</head>

<body>
<div class="container-fluid">
  <ul class="breadcrumb">
    <li><a href="/login">登录</a></li>
  </ul>
    <div class="row">
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h2 class="sub-header">今日头条</h2>
          <div style="padding: 10px 0">
            <a class="activeA" href="/list">今日头条</a>
            <a style="margin-left: 5px" href="/new">发布头条</a>
          </div>

            <div class="table-responsive">
                <table class="table">
                  {{each list}}
                  <tr>
                    <td>
                        <div style="display: flex">
                            <img src="{{$value.img}}" style="height: 96px">
                              <div style="padding-left: 20px">
                                <a href="{{$value.video}}">
                                  <div>{{$value.title}}</div>
                                </a>
                                  <div>来源：{{$value.source}}</div>
                              </div>

                        </div>
                    </td>
                    <td>
                      <a href="/delete?id={{$value.id}}">删除</a>
                    </td>
                  </tr>
                  {{/each}}

                </table>
            </div>
        </div>
    </div>
</div>
</body>

</html>
